﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

/**
 * 创建时间：2014/12/4 17:11:23
 * 作者：yong.blackcore
 * Email：itblackhole@outlook.com
 * QQ：50404503
 */
namespace ComicIsland.Common.Entities.InterfaceJson
{

    public class JsonSearchFilterCondition
    {
        public static ObservableCollection<JsonSearchFilterConditionNation> InitJsonSearchFilterConditionNation()
        {
            var result = new ObservableCollection<JsonSearchFilterConditionNation>();            
            result.Add(new JsonSearchFilterConditionNation() { Name = "日本", Id = 0 });
            result.Add(new JsonSearchFilterConditionNation() { Name = "韩国", Id = 1 });
            result.Add(new JsonSearchFilterConditionNation() { Name = "美国", Id = 2 });
            result.Add(new JsonSearchFilterConditionNation() { Name = "欧洲", Id = 3 });
            result.Add(new JsonSearchFilterConditionNation() { Name = "其它", Id = 4 });
            result.Add(new JsonSearchFilterConditionNation() { Name = "中国", Id = 5 });
            return result;
        }

        public static ObservableCollection<JsonSearchFilterConditionProgress> InitJsonSearchFilterConditionProgress()
        {
            var result = new ObservableCollection<JsonSearchFilterConditionProgress>();
            result.Add(new JsonSearchFilterConditionProgress() { Name = "已完结", Id = 0 });
            result.Add(new JsonSearchFilterConditionProgress() { Name = "连载中", Id = 1 });
            return result;
        }

        public static ObservableCollection<JsonSearchFilterConditionLength> InitJsonSearchFilterConditionLength()
        {
            var result = new ObservableCollection<JsonSearchFilterConditionLength>();
            result.Add(new JsonSearchFilterConditionLength() { Name = "长篇", Id = 0 });
            result.Add(new JsonSearchFilterConditionLength() { Name = "短篇", Id = 1 });
            result.Add(new JsonSearchFilterConditionLength() { Name = "四格", Id = 2 });
            result.Add(new JsonSearchFilterConditionLength() { Name = "单幅", Id = 3 });
            return result;
        }

        public static ObservableCollection<JsonSearchFilterConditionUpdateTime> InitJsonSearchFilterConditionUpdateTime()
        {
            var result = new ObservableCollection<JsonSearchFilterConditionUpdateTime>();
            result.Add(new JsonSearchFilterConditionUpdateTime() { Name = "今日", Id = 0 });
            result.Add(new JsonSearchFilterConditionUpdateTime() { Name = "本周", Id = 1 });
            result.Add(new JsonSearchFilterConditionUpdateTime() { Name = "本月", Id = 2 });
            result.Add(new JsonSearchFilterConditionUpdateTime() { Name = "本季度", Id = 3 });
            result.Add(new JsonSearchFilterConditionUpdateTime() { Name = "本年", Id = 4 });
            return result;
        }
    }


    /// <summary>
    /// 国家
    /// </summary>
    [DataContract]
    public class JsonSearchFilterConditionNation
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public int Id { get; set; }
    }


    /// <summary>
    /// 进度
    /// </summary>
    [DataContract]
    public class JsonSearchFilterConditionProgress
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public int Id { get; set; }
    }


    /// <summary>
    /// 长度
    /// </summary>
    [DataContract]
    public class JsonSearchFilterConditionLength
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public int Id { get; set; }
    }


    /// <summary>
    /// 更新时间
    /// </summary>
    [DataContract]
    public class JsonSearchFilterConditionUpdateTime
    {
        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public int Id { get; set; }
    }


}
